package com.jiangjiang.eshop.commodity.convert;

import com.jiangjiang.eshop.commodity.domain.CategoryEntity;
import com.jiangjiang.eshop.commodity.dto.CategoryDTO;
import org.mapstruct.Mapper;

import java.util.List;

/**
 * @ClassName CategoryConvert
 * @Description TODO
 * @Author jhw
 * @Date 2021/6/20 15:00
 * @Version 1.0
 **/
@Mapper(componentModel="spring")
public interface CategoryConvert {

    List<CategoryDTO> convertEntities2DTOList(List<CategoryEntity> entities);

    CategoryEntity convertDTO2Entity(CategoryDTO dto);
}
